import sys
import ConfigParser

def exit(configs):
    config = ConfigParser.RawConfigParser()
    
    config.add_section('analyse')
    for opt in configs[0]:
        config.set("analyse", opt, configs[0][opt])
    
    config.add_section('drect')
    for opt in configs[1]:
        config.set("drect", opt, configs[1][opt])
    
    configfile=open('frac.conf', 'wb')
    config.write(configfile)
    
    
    sys.exit(1)

